<?php
if (substr(PHP_VERSION, 0, 1) != '5') exit('puzzcore php frame need PHP > 5.0');
define('MODE', 'debug');
if (defined('MODE')){
	switch (MODE){
		case 'debug':
			error_reporting(E_ALL & ~E_NOTICE);
			break;
		case 'released':
			error_reporting(0);
			break;
		default:
			exit('The application mode is not set.');
	}
}
//file name
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('EXT', '.php');
define("BASEPATH",dirname(__FILE__).'/');
define("APPPATH",BASEPATH.'puzzapp/');
define("SYSPATH",BASEPATH.'puzzcore/');
define("MODPATH",BASEPATH.'modules/');

require_once SYSPATH.'core/PuzzCore.php';